package com.tg.appcommon.car;
import android.content.Context;
import android.os.Bundle;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.widget.RelativeLayout;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public abstract class IMapView extends RelativeLayout {
    public IMapView(Context context) {
        super(context);
    }
    public IMapView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }
    public IMapView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public abstract void resume();
    public abstract void pause();
    public abstract void start();
    public abstract void stop();
    public abstract void destroy();
    public abstract void init(@NonNull Bundle outState);
    public abstract void saveInstanceState(@NonNull Bundle outState);
    public abstract void showMarker(double lat, double lng, float direction);
    public abstract void setAllGesturesEnabled(boolean enabled);
    public abstract void getDriveMoveInfo(final boolean location, String uuid);
    public abstract void setTGMapViewMoveListener(TGMapViewMoveListener TGMapViewMoveListener);
    public abstract boolean isLocationSuccess();
    public abstract void setLocationSuccessPhone(boolean locationSuccessPhone);
    public abstract void onClickPhoneLocation();
    public abstract void setDeviceItem(Parcelable parcelable);
    public interface TGMapViewMoveListener {
        void onSpeed(double speed);
        boolean onCheckPermissions();
    }
}
